from rest_framework.pagination import PageNumberPagination


class MyPageNumberPagination(PageNumberPagination):
    page_size = 5  # 每页条数
    page_query_param = 'page'  # 第几页
    page_size_query_param = 'size'  # 取几条
    max_page_size = 10  # 每页最多几条
